package com.ay.shardingshere.service;

import com.ay.shardingshere.entity.Order;
import com.ay.shardingshere.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: ay
 * @Date: 2021/6/24
 * @Description:
 **/
@Service
public class OrderService {


    @Autowired
    private OrderMapper orderMapper;


    public void save(Order order){
        orderMapper.save(order);
    }



    public List<Order> list(){
        return orderMapper.list();
    }
}
